#ifndef UARTCAMERA_H
#define UARTCAMERA_H

#include <QObject>


#include <QSerialPort>
#include <QSerialPortInfo>

class UartCamera : public QObject
{
    Q_OBJECT
public:
    explicit UartCamera(QObject *parent = nullptr);
    void SetSerialPort(QSerialPort* p);

public slots:
    void SlotSendRequest();
    void SlotGetUartImg();

private:
    bool isRecveImg;
    QByteArray receivedData;
    QByteArray img_buf;
    QSerialPort* port;

signals:
    void SigPixBuf(QByteArray);
};

#endif // UARTCAMERA_H
